#!/bin/bash
RELEASE=5.0.1

if [ ! -f assimp-$RELEASE.tar.gz ]; then
    wget https://github.com/assimp/assimp/archive/v$RELEASE/assimp-$RELEASE.tar.gz
fi

if [ -d assimp-$RELEASE ]; then
    rm -fr assimp-$RELEASE
fi

tar xvf assimp-$RELEASE.tar.gz
cd assimp-$RELEASE
find ./ -name "*.dll" -exec git rm -r {} \;
rm -r test/models-nonbsd
cd ..

tar czf assimp-5.0.1-free.tar.xz assimp-$RELEASE
